Show AllShow All

Check if a number is greater than or less than another number

Use the IF function to do this task.

Worksheet example

The example may be easier to understand if you copy it to a blank worksheet.

ShowHow?

 
1
2
3
4
A
Data
15,000
9,000
8,000
Formula Description (Result)
=A2>A3 Is A2 greater than number in A3? (TRUE)
=IF(A3<=A4, "OK","Not OK") Is A3 less than or equal to the number in A4? (Not OK)

Functions details

IF